/*
 * @Author: your name
 * @Date: 2021-10-23 19:25:08
 * @LastEditTime: 2021-10-23 21:10:23
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /distribution/src/api/my.ts
 */
import { server } from './server'

interface feedBackParams {
    option: string;
    cellPhone: string;
    optionImagePath: string
}
interface uploadImg {
    image: string
}

export const postFeedback = (params: feedBackParams) => {
    return server.POST<feedBackParams, any>(`/option/feedback?option=${params.option}&cellPhone=${params.cellPhone}&optionImagePath=${params.optionImagePath}`)
}

export const imageUpload = (params: uploadImg) => {
    return server.POST<uploadImg, any>('/image/upload', params)
}